﻿using System;
using MyWeb.Business;

namespace MyWeb.Controls
{
    public partial class u_footer : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                ShowCopyright();
                showDesign();
            }
        }
        private void ShowCopyright()
        {
            var list = ConfigService.Config_GetById("1");
            if(list.Count > 0)
            {
                var s = "<div id=\"copyright\"><div class=\"box-copy\">";
                s += list[0].Copyright;
                s += "</div></div>";
                ltrcopyright.Text = s;
            }
        }
        private void showDesign()
        {
            var s = "";
            s += "<div class=\"designedby\">";
            s += "<a title=\"thiết kế website\" target=\"_blank\" href='http://dichvuweb24h.com/'>Designed by: <img src='http://dichvuweb24h.com/Design-by.png' alt='thiết kế website'/></a>";
            s += "</div>";
            ltrdesign.Text = s;
        }
    }
}